import yaml
import os
from typing import Dict, Any

def load_yaml_config(config_path: str) -> Dict[Any, Any]:
    """
    Load configuration from a YAML file.
    
    Args:
        config_path (str): Path to the YAML configuration file
        
    Returns:
        Dict[Any, Any]: Configuration dictionary
    """
    if not os.path.exists(config_path):
        return {}
    
    with open(config_path, 'r') as file:
        return yaml.safe_load(file) or {}

def get_config_value(config: Dict[Any, Any], key: str, default: Any = None) -> Any:
    """
    Get a configuration value with a default fallback.
    
    Args:
        config (Dict[Any, Any]): Configuration dictionary
        key (str): Configuration key
        default (Any): Default value if key is not found
        
    Returns:
        Any: Configuration value or default
    """
    return config.get(key, default)